<template>
    <div>
        
    </div>
</template>

<script>
import {Subject,BehaviorSubject} from 'rxjs'
export default {
    mounted(){
        const subject = new Subject();
        subject.subscribe(console.log)
        subject.next('fu')
        subject.subscribe(console.log) ///不会有变化

    }
}
</script>